[USER (data scientist)]: Great! Please create pie charts that display loan approval rates for the specified customer segments: middle-aged customers aged 40-59, those with a stable employment history, and those with a good or excellent credit history. Consider customers with a credit history of "existing paid," "no credits/all paid," or "all paid" as having good or excellent credit history.
My template of code snippet is:

---BEGIN CODE TEMPLATE---

import pandas as pd  
import matplotlib.pyplot as plt  
from decision_company import read_csv_file, logical_and, check_elements_in_list, filter_by_condition, count_unique_values, create_subplots, set_plot_split_title, set_layout, show_plots, save_plot, fetch_column

# Load the dataset  
credit_customers = read_csv_file("credit_customers.csv")  
  
# YOUR SOLUTION BEGIN:
<code1>
[GENERATE YOUR CODE]
</code1>
# YOUR SOLUTION END

# Plot pie charts      
fig, axes = create_subplots(1, 3, figsize=(18, 6))  
  
# YOUR SOLUTION BEGIN:
<code2>
[GENERATE YOUR CODE]
</code2>
# YOUR SOLUTION END

# save data
save_plot('pred_result/pieplot.png')     
show_plots()

---END CODE TEMPLATE---

[YOU (AI assistant)]: Sure, I can help you with that.

# MY SOLUTION BEGIN:
